package cn.demographic.dao;

import cn.demographic.entity.Employment;
import cn.demographic.entity.User;

public interface EmploymentMapper {
	/**
	 * 通过userid查询就业信息
	 * @param user
	 * @return
	 */
	Employment findEmployment(User user);
	
    int deleteByPrimaryKey(Integer id);

    int insert(Employment record);

    int insertSelective(Employment record);

	/**
	 * 添加就业信息
	 * @param record
	 * @return
	 */
	Integer addemployment(Employment record);

	/**
	 * 修改就业信息
	 * @param record
	 * @return
	 */
	int updateEmployment(Employment record);

	/**
	 * 添加单位名称
	 * @param companyname
	 * @return
	 */
	int add(String companyname);
}